package com.hardydou.system.controller;

import com.hardydou.common.controller.BaseController;
import com.hardydou.system.service.ISystemResService;
import com.hardydou.system.service.ISystemRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author hardy
 */
@Controller
public class IndexController extends BaseController {

    @Autowired
    ISystemResService resService;

    @Autowired
    ISystemRoleService roleService;

    @ApiIgnore
    @GetMapping("/")
    public String index(Model model) {
        return "main";
    }

    @ApiIgnore
    @GetMapping("/welcome")
    public String welcome(Model model) {
        return "welcome";
    }


}
